From: Luca Bacci Date: Fri, 12 Jul 2019 08:21:50 +0000 (+0200) Subject: GtkFileChoooserNative: change prepend to append for insertions in choices list X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1~1^2~321^2^2~1076^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=234d0443b22478930b004c6b08491c3fee697be1;p=gtk4.git GtkFileChoooserNative: change prepend to append for insertions in choices list Although slightly less efficient, keeping the order in the choices list makes it easier for GtkFileChooserNative implementations to add widgets in the order specified by the application. See Merge Request !1043 --- diff --git a/gtk/gtkfilechoosernative.c b/gtk/gtkfilechoosernative.c index aec8cb9df9..ffd0ae83d0 100644 --- a/gtk/gtkfilechoosernative.c +++ b/gtk/gtkfilechoosernative.c @@ -365,7 +365,7 @@ gtk_file_chooser_native_add_choice (GtkFileChooser *chooser, choice->options = g_strdupv ((char **)options); choice->option_labels = g_strdupv ((char **)option_labels); - self->choices = g_slist_prepend (self->choices, choice); + self->choices = g_slist_append (self->choices, choice); gtk_file_chooser_add_choice (GTK_FILE_CHOOSER (self->dialog), id, label, options, option_labels);